﻿using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;

namespace CardReader.Controls
{
  [SecurityCritical]
  class IC
  {
    [DllImport("ARCard.dll", EntryPoint = "ArReadInfo")]
    //说明：读卡
    public static extern int ArReadInfo(int Port, int Baud, StringBuilder PstrCardId, out int IC_kind,
      out int Card_kind, out int Biao_kind, out int BuyGas, out int AlarmGas, out int maxadd);

    [DllImport("ARCard.dll", EntryPoint = "ArReadInfo")]
    //说明：制卡
    public static extern int ArNewCard(int Port, int Baud, string PstrCardId, int Made_kind,
      int IC_kind, int biao_kind, int BuyGas, int AlarmGas, int maxadd);

    [DllImport("ARCard.dll", EntryPoint = "ArSaleGas")]
    //说明：写气
    public static extern int ArSaleGas(int Port, int Baud, int biao_kind, int BuyGas);
  }
}
